<include file="Public:headern"/>
<div class="top"><a href="{:U('Membership/index')}"><img src="__PUBLIC__/Catalog/nimages/tb.png"></a>
    <p>修改密码</p>
</div>

<div class="S-reg login_reg">
   <form action="{:U('Membership/changepwd')}" id="changepwd"  method="post">
    <div class="S-form_box">
       <div class="height25"></div>
       <ul>
         <li class="password"><input type="password" name="oldpwd" placeholder="请输入您的原始密码" class="text" required/></li>
         <li class="password"><input type="password" id="pwd" name="pwd"  placeholder="请输入您的修改密码" class="text" required/></li>
         <li class="password"><input type="password" id="pwdagain" name="pwdagain" placeholder="请确认您的修改密码" class="text" required/></li>
       </ul>
       <input type="button" id="tijiao" class="sub" value="确认修改" />
    </div>
   </form>
</div>
<script>
$(function(){
    if('{$msg}'!='0'){
        alert('{$msg}');
    }
});
$('#tijiao').bind("click",function(){
	var pwd = $('#pwd').val();
	var pwdagain=$('#pwdagain').val();
	if(pwd!=pwdagain){
		alert('两次输入的密码不同!');
	}else{
		$('#changepwd').submit();
	}
});
</script>
<include file="Public:footern" />
